//#include <stdio.h>
//
//void encoding(char str[], int key)
//{
//    int i = 0;
//    while (str[i])
//    {
//        if (str[i]>='0'&&str[i]<='9')
//            str[i] = ((str[i]-'0'+key)+10)%10+'0';
//        else if (str[i]>='A'&&str[i]<='Z')
//            str[i] = ((str[i]-'A'+key)+26)%26+'A';
//        else if (str[i]>='a'&&str[i]<='z')
//            str[i] = ((str[i]-'a'+key)+26)%26+'a';
//        i++;
//    }
//}
//
//int main()
//{
//    int key = 0;
//    int str[50] = {0};
//    printf("Please input a string:>");
//    gets(str);
//    printf("Please input anumber:>");
//    scanf("%d", &key);
//    encoding(str, key);
//    printf("Coding result is \"%s\".\n", str);
//    return 0;
//}
//
///* Please input a string:>Today is January 8th 2025.
// * Please input anumber:>1
// * Coding result is "Upebz jt Kbovbsz 9ui 3136.".
// *
// * Process returned 0 (0x0)   execution time : 28.012 s
// * Press any key to continue.
// *
// * Please input a string:>Today is January 8th 2025.
// * Please input anumber:>-1
// * Coding result is "Cxmjh rb Sjwdjah 7cq 1914.".
// *
// * Process returned 0 (0x0)   execution time : 15.246 s
// * Press any key to continue.
// */
//
